package com.eastfair.builder.config;//package com.eastfair.auth.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.jdbc.datasource.DataSourceTransactionManager;
//import org.springframework.transaction.PlatformTransactionManager;
//import org.springframework.transaction.annotation.EnableTransactionManagement;
//
//import javax.sql.DataSource;
//
//@Configuration
//@EnableTransactionManagement
//public class TransactionConfiguration {
//
//    @Bean
//    public PlatformTransactionManager txManager(final DataSource dataSource) {
//        return new DataSourceTransactionManager(dataSource);
//    }
////    //如果不使用jdbctemplate就可以不注入。
////    @Bean
////    public JdbcTemplate jdbcTemplate(final DataSource dataSource) {
////        return new JdbcTemplate(dataSource);
////    }
//}
